package com.compty.paint.manager;

import java.util.List;

import com.compty.core.hibernate.HibernateEntityDao;
import com.compty.paint.domain.SharpInfo;

public class SharpInfoManager extends HibernateEntityDao<SharpInfo>{
	
	private static List<SharpInfo> sharpInfoList;//作品形状
	
	@SuppressWarnings("unchecked")
	public List<SharpInfo> getAll() {
		
		if( sharpInfoList == null){
		
			String hql = "from SharpInfo order by order_sequence asc";
			List<SharpInfo> list = find(hql);
			
			sharpInfoList = list;
		}
		
		return sharpInfoList;
	}

}
